package com.zy.mapper.sys;

import java.util.List;
import com.zy.model.sys.ZyPermission;
import com.zy.model.sys.ZyPermissionExample;
import com.zy.model.sys.ZyUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ZyPermissionMapper {
    int countByExample(ZyPermissionExample example);

    int deleteByExample(ZyPermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ZyPermission record);

    int insertSelective(ZyPermission record);

    List<ZyPermission> selectByExampleWithRowbounds(ZyPermissionExample example, RowBounds rowBounds);

    List<ZyPermission> selectByExample(ZyPermissionExample example);

    ZyPermission selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ZyPermission record, @Param("example") ZyPermissionExample example);

    int updateByExample(@Param("record") ZyPermission record, @Param("example") ZyPermissionExample example);

    int updateByPrimaryKeySelective(ZyPermission record);

    int updateByPrimaryKey(ZyPermission record);


    List<ZyPermission>  selectPermissionByUser(ZyUser user);
}